package com.javafour;

import java.util.Arrays;

public class Demo6 {
    public static void main(String[] args) {
        String[] str = new String[5];
        str[0]="dd";
        str[1]="re";
        str[2]="yt";
        str[3]="rtr";
        str[4]="eew";
        Arrays.sort(str);
        for (int i = 0; i < str.length; i++) {
            System.out.println(str[i]);
        }
    }
}
